import { PageParams } from "@/types/global";
import { HotResult } from "@/types/hot";
import { httpRequest } from "@/utils/http";

// 热门商品分页参数类型
type HotPageParams = PageParams & { subType?: string };

// 获取热门商品页面数据
export const getHotRecommandAPI = (url: string, data?: HotPageParams) => {
    return httpRequest<HotResult>({
        method: 'GET',
        url, data,
    });
};